
import request from '@/utils/request.js'
//获取手机验证码
export const sendCode=(tel)=>{
    return request({
        method:'post',
        url:'/gateway',
        data:{
            xHost:'mall.user.sms-code.send',
            imgCode:"",
            imgKey: "",
            mobile:tel,
            type: "1"
        }
    })
}

//登录页面

export const loginUser=(code,tel)=>{
    return request({
        method:'post',
        url:'/gateway',
        data:{
            xHost:'mall.user.sms-code-login',
            extra: {},
imgCode:"",
imgKey: "",
mobile: tel,
smsCode:code
        }
    })
}
